package com.eaoa.uc.dictionary.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.eaoa.base.EABaseAction;
import com.eaoa.uc.dictionary.bo.DDictionaryDeleteBO;

public class DDictionaryDeleteAction extends EABaseAction{

	/**
	 * delete a DataDictionary specified by ddno
	 * @author zhenglun.zhou
	 */
	protected ActionForward doWork(ActionMapping mapping, ActionForm form, 
			HttpServletRequest request, HttpServletResponse response){
		String ddnostr = request.getParameter("ddno");
		Long ddno = Long.valueOf(ddnostr);
		DDictionaryDeleteBO bo = new DDictionaryDeleteBO(ddno);
		bo.execute();

		return mapping.findForward("success");
	}

}